<?php

require_once '../ConnectFour.php';
require_once '../FourInALinePlayer.php';
require_once '../Player.php';

class BoardTest extends PHPUnit_Framework_TestCase {

    public function testMoveChecker() {
        $grid = array(
            array(1, 1, 1, null, null),
            array(null, null, null, null, null),
            array(null, null, null, null, null),
            array(null, null, null, null, null),
            array(null, null, null, null, null));

        $checker = new \DankerBot\MoveChecker();
        $player = new \DankerBotPlayer(FourInALinePlayer::PLAYER_ONE, 5, 5);
        $board = new \DankerBot\Board($grid, $player, $checker);

        $this->assertTrue($board->getPlayer()->getCurrentPlayerNumber() == 1);
        $this->assertTrue($board->getWidth() == 5);
        $this->assertTrue($board->getHeight() == 5);
    }

}
